//Card类，代表牌
public class Card {
    private int rank; //数字
    private String suit;//花色

    public Card(int rank, String suit) {
        this.rank = rank;
        this.suit = suit;
    }

    //重写toString方法，供print方法打印Arraylist对象时使用
    @Override
    public String toString() {
        return "{"+suit+" "+rank+"}";
    }
}
